package com.example.maggie.meizinote.mvp.ui.adapter;

import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.maggie.meizinote.R;
import com.example.maggie.meizinote.app.bean.ClassifyBean;

/**
 * Created by addis on 2018/5/1.
 */
public class ColorSelectAdapter extends BaseQuickAdapter<Integer, BaseViewHolder> {
    public ColorSelectAdapter() {
        super(R.layout.item_color_select);
    }

    @Override
    protected void convert(BaseViewHolder helper, Integer color) {
        helper.getView(R.id.tv).setBackgroundColor(color);
    }
}